"use strict";
var root = __dirname;

var config = {
    root    : root,
    debug   : 2,
    dbname  :'GINI',
    secret  : "szmzbzbzlp",
    session : {"key":"_cos_id","prefix":"_cos_cookie"},
}
module.exports = config;

config.dbase = {
    cache   : {'host':'127.0.0.1','port':6379,'db':1,'password':'gini123'},
    mongodb : {'host':'127.0.0.1','port':27017,'username':'ginibong','password':'ginibong2020'}
}

config.remote = {
    //fnum     : 1,
    port     : 80,
    name     : "remote",
    shell    : root+'/process/remote',
}

config.service = 's';

config.local = {
    fnum     : 1,
    port      : 8080,
    name     : "local",
    shell    : root+'/process/local',
}

config.spirit = {
    "route" :"spirit",
    "update":{'ts':9,"ip":"127.0.0.1"},
    "server":{"url":"http://127.0.0.1:3000"},
}
//监控
config.monitor = {
    port      : 3000,
    secret    : config.secret
}


module.exports.worker = [
    // ['/5 * * * * *',"test",root+'/worker/test',1 ], //定时,脚本名称,脚本路径,参数...
]
